home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2003 December / The Sunday Times - The Month 2003-12.iso / pc / engine / swf / child_unlock.swf / scripts / frame_1 / DoAction.as
Text File  |  2003-10-06  |  496b  |  24 lines

  1. CODE = "TMN812";
  2. stop();
  3. fld.onSetFocus = function()
  4. {
  5.    this.text = "";
  6.    this.onSetFocus = null;
  7. };
  8. btn_ok.onRelease = function()
  9. {
  10.    if(fld.text.toUpperCase() == CODE)
  11.    {
  12.       trace("Child Lock unlock code CORRECT");
  13.       _parent.connTardisSend.onStatus = function(infoObject)
  14.       {
  15.          _parent.dialogsHide();
  16.       };
  17.       _parent.connTardisSend.send("Tardis","childlock_unlock");
  18.    }
  19. };
  20. btn_cancel.onRelease = function()
  21. {
  22.    _parent.dialogsHide();
  23. };
  24.